package zjitc.interfa2.usb;

/**
 * @author:胡新雨
 * @date：2019/3/26 9:16
 */
public class Computer {
    Mic mic; Usb usb;
    KeyBoard keyBoard;
    Mouse mouse;
   Computer(){

   }
    void trunOn(){
        mouse.trunOn();
        keyBoard.trunOn();
        mic.trunOn();
        System.out.println("计算机开机成功");
    }


    public void trunoff(){
        mouse.trunOff();
        keyBoard.trunOff();
        mic.trunOff();
        System.out.println("计算机关机成功");
    }
}
